<%
import time as t
title = 'Account Dashboard'
include(top)
%>

<div class="pure-g">
	<div class="pure-u-1">
		<h1 class="center">{{title}}</h1>
	</div>
% if user_is_admin:
	<div class="pure-u-1 center"><br /><a href="/admin">You can haz admin?</a><br /></div>
% end
	<div class="pure-u-1 pure-u-md-1-2 dash" id="user">
		<h2 class="dash-title">{{username}}</h2>
		<i class="fa fa-user fa-5x"></i>
	</div>
	<div class="pure-u-1 pure-u-md-1-2 dash" id="pastenum">
% # 1 paste_ or n paste_s_?
% if numactive == 1:
		<h2 class="dash-title">{{numactive}} <a href="/user/pastes">active paste</a></h2>\\
% else:
		<h2 class="dash-title">{{numactive}} <a href="/user/pastes">active pastes</a></h2>\\
% end  # (if)
		<i class="fa fa-folder-open fa-5x"></i>
	</div>
	<div class="pure-u-1 pure-u-md-1-2 dash" id="views">
		<h2 class="dash-title">{{numviews}} views</h2>
		<i class="fa fa-eye fa-5x"></i>
	</div>
	<div class="pure-u-1 pure-u-md-1-2 dash" id="size">
		<h2 class="dash-title">{{numbytes}} uploaded</h2>
		<i class="fa fa-upload fa-5x"></i>
	</div>
	<div class="pure-u-1 pure-u-md-1-2 dash" id="time">
		<h2 class="dash-title">User since {{!t.strftime('%B %d, %Y', t.localtime(joined))}}</h2>
		<i class="fa fa-calendar fa-5x"></i>
	</div>
	<div class="pure-u-1 pure-u-md-1-2 dash" id="settings">
		<h2 class="dash-title"><a href="/user/changepass">Change Password</a></h2>
		<i class="fa fa-gears fa-5x"></i>
	</div>
</div>

% include(bottom)
